package cdc.emu;

import java.awt.Frame;

import com.amazon.kindle.kindlet.Kindlet;
import com.amazon.kindle.kindlet.KindletContext;


public class KindleEmulator {

	public static void main(String[] args) throws Exception {
		
		if(args.length < 1) {
			System.out.print("kindlet missing");
			System.exit(0);
		}
		
		Kindlet kindlet = (Kindlet) Class.forName(args[0]).newInstance();
		
		Frame frame = new Frame();
		KindletContext context = new KindletContextImpl(frame);
		kindlet.create(context);
		kindlet.start();
		frame.setVisible(true);
	}

}
